import {memberRoutes} from "@/router/memberRoutes";
import {defineStore} from "pinia";
import {reactive} from "vue";
import type {RouteRecordRaw} from "vue-router";
import {adminRoutes} from "@/router/adminRoutes.ts";
import {publicRoutes} from "@/router/publicRoutes.ts";

export const useRoutesStore = defineStore('routes', () => {
    const memberRoutesInfo = reactive<Array<RouteRecordRaw>>(memberRoutes)
    const adminRoutesInfo = reactive<Array<RouteRecordRaw>>(adminRoutes)
    const publicRoutesInfo = reactive<Array<RouteRecordRaw>>(publicRoutes)

    return {memberRoutesInfo, adminRoutesInfo, publicRoutesInfo}
})